{% extends "base.html" %}
{% block title %}2019 春节放假统计{% endblock %}
{% block styles %}{{ super() }}
<style>
    body {
        padding-top: 100px;
    }
</style>
{% endblock %}
{% block content %}
<div class="container-fluid">
    <div class="row">
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>部门</th>
                    <th>工号</th>
                    <th>姓名</th>
                    {% for day in days %}
                    <th>{{ day.replace('2019-','') }}</th>
                    {% endfor %}
                </tr>
            </thead>
            <tbody>
                {% for _,user in data.items() %}
                <tr>
                    <td style="width:100px">
                        {{ user['position'].replace('JMH重工模块事业本部','').replace('技术部','').replace('建造技术科','').replace('技术一科','').replace('技术二科','') }}
                    </td>
                    <td style="width:50px">{{ user['no'] }}</td>
                    <td style="width:50px">{{ user['name'] }}</td>
                    {% for day in days %}
                    <td>{{ user['tasks'][day] }}</td>
                    {% endfor %}
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
{% endblock %}